﻿//-----------------------------------------------------------------------
// <copyright file="Cell.cs" company="cx studio">
//     Copyright (c) cx studio. All rights reserved.
// </copyright>
// <author>Xi Chen</author>
//-----------------------------------------------------------------------
namespace CentralFoveaLib.ColorProcess
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    /// <summary>
    /// Convert bitmap to each cell.
    /// </summary>
    public class CCell
    {
        /// <summary>
        /// Gets or sets the X-axis.
        /// </summary>
        public decimal X { get; set; }

        /// <summary>
        /// Gets or sets the Y-axis.
        /// </summary>
        public decimal Y { get; set; }

        /// <summary>
        /// Gets or sets the HSL color.
        /// </summary>
        public ColorHSL HSL { get; set; }

        /// <summary>
        /// Gets or sets the RGB color.
        /// </summary>
        public ColorRGB RGB { get; set; }

        /// <summary>
        /// Gets or sets the type of cell.
        /// </summary>
        public int CellType { get; set; }

        /// <summary>
        /// Gets or sets the color gray.
        /// </summary>
        public double Gray { get; set; }

        public override string ToString()
        {
            return String.Format("{0},{1},{2},{3},{4},{5}", X, Y, Gray, RGB.R, RGB.G, RGB.B);
        }

        public bool L { get; set; }
    }
}
